package com.woniuxy.controller;

import com.woniuxy.entity.DiseaseTags;
import com.woniuxy.service.DiseaseTagsService;
import com.woniuxy.util.ResponseUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 疾病标签控制器
 * 处理疾病标签相关的HTTP请求
 */
@RestController
@RequestMapping("/tags")
public class DiseaseTagsController {
    @Resource
    private DiseaseTagsService diseaseTagsService;
    
    /**
     * 查询所有疾病标签
     * @return 返回所有疾病标签的响应结果
     */
    @GetMapping
    public ResponseUtil queryAll(){
        ResponseUtil result = diseaseTagsService.queryAll();
        return result;
    }
}
